<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
 <script>
  function sun(n)
	{	
		if (n==1)
		{
			return 1;
		}
		return sun(n-1)+(n);
	}
	document.write(sun(5));

  </script>
 </body>
</html>
